Northwoods.GoXam.Model Namespace > GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class > Load Method : Load<NodeDataType,LinkDataType>(XContainer,XName,XName) Method |
XContainer
holding all of the data
XElement
holding node data
XElement
holding link data
XContainer
holding node and link data, replace this model's NodesSource and LinksSource collections with collections of new node data and new link data.Public Overloads Sub Load (Of NodeDataType As {New, GraphLinksModelNodeData(Of NodeKey)}, LinkDataType As {New, GraphLinksModelLinkData(Of NodeKey,PortKey)})( _ ByVal root As XContainer, _ ByVal nodename As XName, _ ByVal linkname As XName _ )
public void Load<NodeDataType,LinkDataType>( XContainer root, XName nodename, XName linkname ) where NodeDataType: new(), GraphLinksModelNodeData<NodeKey> where LinkDataType: new(), GraphLinksModelLinkData<NodeKey,PortKey>
XContainer
holding all of the dataXElement
holding node dataXElement
holding link dataAll of the changes to this model are performed within a transaction.
This does not set the IsModified property to false. You may wish to do so, depending on your application requirements. You might also wish to clear the UndoManager.